package com.shenyi.admin.service;

import com.shenyi.admin.api.ISysOssService;
import com.shenyi.admin.dao.SysOssMapper;
import com.shenyi.admin.entity.SysOssDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/02
 * @desc 阿里云上传
 * @see
 * @since 1.0
 */
@Service
public class SysOssServiceImpl implements ISysOssService {


    @Autowired
    private SysOssMapper sysOssMapper;

    @Override
    public SysOssDO queryObject(Long id) {
        return sysOssMapper.queryObject(id);
    }

    @Override
    public List<SysOssDO> queryList(Map<String, Object> map) {
        return sysOssMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysOssMapper.queryTotal(map);
    }

    @Override
    public void save(SysOssDO sysOss) {
        sysOssMapper.save(sysOss);
    }

    @Override
    public void update(SysOssDO sysOss) {
        sysOssMapper.update(sysOss);
    }

    @Override
    public void delete(Long id) {
        sysOssMapper.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        sysOssMapper.deleteBatch(ids);
    }
}
